import {request} from '@/util/request.js'

//机构处置人员----待办案件列表
export function getPendingTaskListJgczry(data) {
	return request({
		url: '/business/app/event/getCzryAllEventsOfDcz',
		method: 'POST',
		data
	})
}
//平台监理----待办案件列表
export function getPendingTaskListPtjl(data) {
	return request({
		url: '/business/app/event/selectDczEventOfJl',
		method: 'POST',
		data
	})
}

//机构处置人员----案件处置提交
export function appEventDeal(data) {
	return request({
		url: '/business/app/event/deal',
		method: 'POST',
		data
	})
}

//监理----案件核查提交
export function updateSuperviseOfEvent(data) {
	return request({
		url: '/business/app/event/updateSuperviseOfEvent',
		method: 'POST',
		data
	})
}

//部门负责人----案件评价
export function updateEventEvaluate(data) {
	return request({
		url: '/business/event/eventEvaluate/updateEventEvaluate',
		method: 'POST',
		data
	})
}


//根据案件id及环节编码获取最新处理日志结果
export function getEventLogByEventIdAndTypeCodes(data) {
	return request({
		url: '/business/event/eventLog/getEventLogByEventIdAndTypeCode?eventId='+ data.eventId +'&typeCode=0008',
		method: 'GET'
	})
}
